package com.zry.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zry.VO.UserParamVO;
import com.zry.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Zry
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    List<User> findUsers(UserParamVO userParamVO);

    List<Map<String,Object>> findBlogUser(UserParamVO userParamVO);

    IPage<Map<String,Object>> selectUserPageMap(Page page, @Param(Constants.WRAPPER) Wrapper<User> queryWrapper);
}
